package android.tusnotas.services;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class WebCheckerReceiver extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
		if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction()))
		  {
		     Intent serviceLauncher = new Intent(context, WebChecker.class);
		     context.startService(serviceLauncher);
		     Log.w(this.getClass().getName(), "WebChecker Service loaded at start");
		  }		
	}

}
